﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt
{
	// Token: 0x020000BA RID: 186
	public class TReturnStmt : TCustomSqlStatement
	{
		// Token: 0x06000668 RID: 1640 RVA: 0x002FE8B0 File Offset: 0x002FCAB0
		public TReturnStmt() : this(EDbVendor.dbvoracle)
		{
		}

		// Token: 0x06000669 RID: 1641 RVA: 0x002FE8BA File Offset: 0x002FCABA
		public TReturnStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sst_returnstmt;
		}

		// Token: 0x0600066A RID: 1642 RVA: 0x002FE8CB File Offset: 0x002FCACB
		internal override void buildsql()
		{
		}

		// Token: 0x0600066B RID: 1643 RVA: 0x002FE8CD File Offset: 0x002FCACD
		internal override void clear()
		{
		}

		// Token: 0x0600066C RID: 1644 RVA: 0x002FE8CF File Offset: 0x002FCACF
		internal override string getasprettytext()
		{
			return "";
		}

		// Token: 0x0600066D RID: 1645 RVA: 0x002FE8D6 File Offset: 0x002FCAD6
		internal virtual void iterate(TVisitorAbs pvisitor)
		{
		}

		// Token: 0x1700011D RID: 285
		// (get) Token: 0x0600066E RID: 1646 RVA: 0x002FE8D8 File Offset: 0x002FCAD8
		// (set) Token: 0x0600066F RID: 1647 RVA: 0x002FE8E0 File Offset: 0x002FCAE0
		public virtual TExpression Expression
		{
			get
			{
				return this.expression;
			}
			set
			{
				this.expression = value;
			}
		}

		// Token: 0x06000670 RID: 1648 RVA: 0x002FE8E9 File Offset: 0x002FCAE9
		public override void init(object arg1)
		{
			this.expression = (TExpression)arg1;
		}

		// Token: 0x06000671 RID: 1649 RVA: 0x002FE8F7 File Offset: 0x002FCAF7
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			base.doParseStatement(psql);
			if (this.expression != null)
			{
				this.expression.doParse(this, ESqlClause.unknown);
			}
			return 0;
		}

		// Token: 0x06000672 RID: 1650 RVA: 0x002FE917 File Offset: 0x002FCB17
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000673 RID: 1651 RVA: 0x002FE927 File Offset: 0x002FCB27
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001191 RID: 4497
		private TExpression expression;
	}
}
